body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background-color: #2c3e50;
    color: #ecf0f1;
    font-family: Arial, sans-serif;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%; /* Adjust as needed */
    margin-bottom: 10px; /* Reduced margin */
    background-color: #34495e; /* Darker background for the top bar */
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.game-title {
    color: #f1c40f;
    margin: 0; /* Remove default margin */
    font-size: 1.8em; /* Slightly smaller to fit */
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between elements */
}

.controls label {
    font-size: 1em;
    color: #ecf0f1;
}

.controls select {
    padding: 8px 12px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #2980b9;
    background-color: #2c3e50;
    color: #ecf0f1;
    appearance: none; /* Remove default select arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.controls select:focus {
    outline: none;
    border-color: #f1c40f;
    box-shadow: 0 0 5px rgba(241, 196, 15, 0.5);
}

#restartButton {
    padding: 8px 15px; /* Adjusted padding */
    font-size: 1em; /* Adjusted font size */
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#restartButton:hover {
    background-color: #c0392b;
}

#score {
    font-size: 1.5em;
    color: #27ae60;
    font-weight: bold;
    margin: 0; /* Remove default margin */
}

canvas {
    background-color: #3498db; /* Ocean blue */
    border: 5px solid #2980b9;
    display: block;
    margin-bottom: 0; /* No margin below canvas to help fit on screen */
    max-width: 100%; /* Ensure canvas doesn't overflow */
    height: auto; /* Maintain aspect ratio */
}
